package com.scenic.common.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private Integer id;//主键
    private String username;//用户名
    private String password;//密码
    private String payPassword;//支付密码
    @JsonIgnore
    private String salt;//盐
    private String realname;//真实姓名
    private String avatar;//头像
    private String sex;//性别
    private String idCard;//身份证
    private String phone;//手机号
    private String email;//邮箱
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date regTime;//注册时间
    private BigDecimal money;//余额
    private Integer status;//0:已认证 2:禁用 3:注销
}
